﻿using KyDependencyPlugin;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DependencyPluginDemo
{
    #region 接口的注册方法

    public interface  IStudent: ITransient //ITransient:瞬时 IScoped：每个请求注册一次  ISingleton：单例
    {
        void Say();
    }
    //
    public class Student : IStudent
    {
        public void Say()
        {
            Console.Write("我是学生");
        }
    }

    #endregion
    #region 类的注册方法

    public class Teacher  : ITransient
    {
        public void Say()
        {
            Console.Write("我是老师");
        }
    }

    #endregion
}
